import axios from 'axios';

axios.defaults.baseURL = 'http://47.102.145.189:8009'

const instance = axios.create()

instance.interceptors.request.use(function (config) {
    config.headers.Authorization=sessionStorage.getItem('token')
    return config;
},function(error){
    return Promise.reject(error);
});

instance.interceptors.response.use(function(response){
    return response;
},function(error){
    return Promise.reject(error);
})

export default instance